package de.fh.ka.as.car.routing.map;

import android.graphics.Point;

/**
 * Adds a Point of the Map
 */
public class AddCommand implements MapCommand
{
    private Point point;
    private ObjectType type;

    public enum ObjectType
    {
	WallMapObject
    }

    @Override
    public boolean execute(MapProvider provider)
    {
	if (!provider.getMap().containsKey(point))
	{
	    provider.getMap().put(point, new WallMapObject(point));
	    return true;
	} else
	    return false;
    }
}